package easycloud.ecs.provider.baidu.model;

import java.io.InputStream;

import com.baidu.inf.iis.bcs.model.DownloadObject;

import easycloud.ecs.api.model.IStorageObject;

public class BaiduStorageObject implements IStorageObject {

	private DownloadObject object;

	public BaiduStorageObject(DownloadObject downloadObject) {
		object = downloadObject;
	}

	@Override
	public String getETag() {
		return object.getObjectMetadata().getETag();
	}

	@Override
	public String getKey() {
		return object.getObject();
	}

	@Override
	public InputStream getObjectContent() {
		return object.getContent();
	}
}
